#ifndef __GAME_PLAY_SCENE_H__
#define __GAME_PLAY_SCENE_H__

#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "cocostudio/CocoStudio.h"

USING_NS_CC;
using namespace ui;
using namespace cocostudio;

class GamePlayScene : public cocos2d::Layer
{
public:
    static Scene* createScene();    
    virtual bool init();      
   
    CREATE_FUNC(GamePlayScene);

	void answer(Ref* pSender, TouchEventType type);

	void loadQuestionLeft(int index, const char* type);

	void loadQuestionRight(int index, const char* type);

private:
	Button *button_left_answer_0, *button_left_answer_1, *button_left_answer_2, 
		   *button_right_answer_0, *button_right_answer_1, *button_right_answer_2;
	ImageView** lifeArray;
	ImageView *image_left_puzzle, *image_right_puzzle;
	Text *text_main_score, *text_left_score, *text_right_score, 
		*text_left_puzzle, *text_right_puzzle;
	int currentQuestionLeft, currentQuestionRight, leftScore, rightScore, totalScore,
		numLife;
	static const int MAX_LIFE = 5;
	Armature** animTimers;
};

#endif // __GAME_PLAY_SCENE_H__
